﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Senthil.Mobile.WhereAmI
{
    public interface IInputMessageReceiver
    {
        void Enable();
        void Disable();

        void ReceiveOnlyMessage(string message);

        event EventHandler<InputMessageReceivedEventArgs> InputMessageReceived;
    }

    public class InputMessageReceivedEventArgs : EventArgs
    {
        string from;
        string message;

        public InputMessageReceivedEventArgs(string from, string message)
        {
            this.from = from;
            this.message = message;
        }

        public string From
        {
            get { return from; }
        }

        public string Message
        {
            get { return message; }
        }
    }
}
